function block = bi2de_com(block, flag)
  //block.ipar(1) is number of bit
  if flag == 1 then 
    decimal = bi2de(block.inptr(1)(:)');  //convert symbol to bits
    block.outptr(1) = decimal; //convert bits to symbols
  end
endfunction

